class Simulator::IntegrationParametersController < ApplicationController
	layout 'simulator/simulator'
	

	def edit
		@simulation = Simulation.find(params[:simulation_id])
		@integration_parameter = IntegrationParameter.find(params[:id])
	end

	def update
		@integration_parameter = IntegrationParameter.find(params[:id])
		@simulation = Simulation.find_by_id(@integration_parameter.simulation_id)
		if @integration_parameter.update_attributes(params[:integration_parameter])
			flash[:notice] = "Integration parameters have been updated"
			redirect_to :controller => 'systems', :action => 'show', :id => @simulation.system_id
		end
	end
end
